package cn.shafish.colorthings.controller;

import cn.shafish.colorthings.service.HelloSeleniumService;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("hello")
public class HelloSeleniumController {
    @Autowired
    private HelloSeleniumService helloSeleniumService;

    @GetMapping("get")
    public String get() throws JsonProcessingException {
        return helloSeleniumService.sayHello();
    }
}
